namespace Aurora.TaskScheduler.Abstractions.Message;

/// <summary>
/// app task log
/// </summary>
public class AppTaskLog
{
    public string Id { get; set; }
    /// <summary>任务编号</summary>
    public string TaskId { get; set; }

    /// <summary>
    /// 任务名
    /// </summary>
    public string TaskName { get; set; }

    /// <summary>
    /// 分组名
    /// </summary>
    public string GroupName { get; set; }

    /// <summary>
    /// 任务开始时间
    /// </summary>
    public DateTime? BeginDate { get; set; }

    /// <summary>
    /// 任务结束时间
    /// </summary>
    public DateTime? EndDate { get; set; }

    /// <summary>
    /// 任务执行结果
    /// </summary>
    public string Msg { get; set; }

    /// <summary>耗时（毫秒）</summary>
    public long ElapsedMilliseconds { get; set; }

    /// <summary>是否成功</summary>
    public bool Success { get; set; }

    /// <summary>异常信息</summary>
    public string Exception { get; set; }

    /// <summary>创建时间</summary>
    public DateTime CreateTime { get; set; }
}